//
//  ILawList.h
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/22.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ArticlesListInfo.h"
#import "CommentList.h"
@protocol ILawList <NSObject>
@optional
//获取分类下文章列表
-(void) requestILawListWithCname:(NSString *) cname andCid:(NSString *) cid andFid:(NSString *) fid andPage:(NSString *) page andPageSize:(NSString *) pageSize andKeyWords:(NSString *) keyWords SuccBlock:(void(^)(ArticlesListInfo *articlesListInfo))succBlock FailBlock:(void(^)(NSString *msg)) failBlock;

// 获取文章详细信息
-(void) requestArticleDetail:(NSString *) articlId SuccBlock:(void(^)(ArticleObject *articleObject)) succBlock andFailBlock:(void(^)(NSString *msg)) failBlock;

// 获取文章评论列表
-(void) requestCommentListWithArticlId:(NSString *) article_id andPage:(NSString *) page andPageSize:(NSString*) pageSize SuccBlock:(void(^)(CommentList *commentList))succBlock FailBlock:(void(^)(NSString *msg)) failBlock;

// 添加文章评论
-(void) requestAddCommentWithArticlId:(NSString *) article_id andUserName:(NSString *) userName andContent:(NSString*) content SuccBlock:(void(^)(CommentObject *commentObject)) succBlock FailBlock:(void(^)(NSString *msg)) failBlock;
@end
